<?php foreach ($main as $item): ?>

    <h2><?php echo $item['title'] ?></h2>
    <div id="main">
        <?php echo $item['filename'] ?>
    </div>


    <h2><?php echo $item['player_name'] ?></h2>
    <div id="main">
        <?php echo $item['map'] ?>
    </div>

<?php endforeach ?>